package com.zy.je.book.module.tmp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zy.je.common.mybatis.ext.activerecord.BaseArModel;
import com.zy.je.common.mybatis.ext.activerecord.LogicDeleteArModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

/**
 * <p>
 * 作者（临时数据）
 * </p>
 *
 * @author zy
 * @since 2024-06-21
 */

@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@Data
@ToString
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tmp_author")
@ApiModel(value = "TmpAuthor对象", description = "作者（临时数据）")
public class TmpAuthor extends LogicDeleteArModel<Long,TmpAuthor> {
    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "批次号")
    private String batchNo;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "排序")
    private String sort;

    @ApiModelProperty(value = "链接")
    private String link;

    @Override
    public Serializable pkVal() {
        return this.getId();
    }
}
